#ifndef __BOARD__H__
#define __BOARD__H__


#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>

enum eLED_Name
{
    LED_Red = 0,
    LED_Yellow,
    LED_Blue
};

enum eDIDO_Port
{
    DI1_Port = 1,
    DI2_Port,
    DI3_Port,
    DI4_Port,
    DI5_Port,
    DO1_Port,
    DO2_Port,
    DO3_Port,
    DO4_Port
};

s8 Board_GetKeyState(void);
s8 Board_GetIO485State(void);
bool_t BoardDO_Ctrl(u8 port, bool_t state);
bool_t BoardDODI_Get(u8 port, u8 *state);
void BoardWIFI_Reset(void);
void Board4G_Reset(void);
// bool_t BoardDI_Get(u8 port, u8 *state);
bool_t BoardLED_Ctrl(u8 port, bool_t state);
bool_t Board_UartGpioInit(u8 SerialNo);
void Board4G_RstCtrl(bool_t state);
void Board4G_PwrCtrl(bool_t state);
void BoardGNSS_VDD_EN_Ctrl(bool_t state);
void BoardGNSS_PowerCtrl(bool_t state);
void Board_Init(void);

#ifdef __cplusplus
}
#endif

#endif
